package com.wlyuan.index.domain.index.valueobj;

import com.wlyuan.core.marker.INamed;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yuanjie
 */
@Deprecated
public class Customer {
    @Getter
    @AllArgsConstructor
    public enum Type implements INamed<Integer> {
        OFFLINE(0, "线下"),
        ONLINE(1, "线上"),
        MYSELF(2, "自己");
        private final Integer value;
        private final String name;
    }

    public static boolean isOnline(Integer customerType) {
        return Type.ONLINE.getValue().equals(customerType);
    }

    public static boolean isMyself(Integer customerType) {
        return Type.MYSELF.getValue().equals(customerType);
    }
}
